<include file="App/Admin/View/Public/left.html"/>
<div class="admin">

<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 销售网络</strong></div>
  <div class="padding border-bottom">  
  <a href="{:U('Sales/insert')}"><button type="submit" class="button border-yellow"><span class="icon-plus-square-o"></span> 添加</button></a>
  </div><form method="post" action="{:U('Sales/add')}">
  <table class="table table-hover text-center">
    <tr>
      <th width="5%">ID</th>
      <th width="15%">图片</th>
      <th width="20%">内容</th>
      <th width="10%">状态</th>
      <th width="10%">添加时间</th>
      <th width="20%">操作</th>
    </tr>
   <volist name="list" id="vo">
    <tr>
      <td>{$vo.id}</td>                
      <td><img src="{$vo.pic}" alt="" width="120" height="80" /></td>
      <td><div style="overflow: auto; height:100px;">{$vo.content}</div></td>
    <td>
      <eq name="vo.status" value="0">
    隐藏
    <else/>
    显示
    </eq>
    </td>
    <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
      <td>
    
    <div class="button-group">  <a class="button border-blue" href="{:U('Sales/edit',array('id'=>$vo['id']))}"><span class="icon-edit text-blue"></span> 修改</a> </div>
    <div class="button-group">  <a class="button border-red" href="{:U('Sales/delete',array('id'=>$vo['id']))}"><span class="icon-trash-o"></span> 删除</a></div>
    <div class="button-group">  <a class="button border-green" href="{:U('Sales/open',array('id'=>$vo['id']))}"><span class="icon-edit text-green"></span>
      <eq name="vo.status" value="0">显示<else /> 隐藏</eq></a> </div>
      
  </td>
    </tr>
  
    </volist>
  </table>
  
</div>
<div class="pagelist">{$page} </div>
</form>